<form class="layui-form layui-box" style='padding:25px 30px 20px 0' action="star/save" data-auto="true" method="post">

    <div class="layui-form-item">
        <label class="layui-form-label">名称</label>
        <div class="layui-input-block">
            <input type="text" name="name" value='${obj.name!""}' required="required" title="请输入名称" placeholder="请输入名称" class="layui-input">
        </div>
    </div>
   <div class="layui-form-item">
        <label class="layui-form-label">性别</label>
        <div class="layui-input-inline">
        	<select name="sex" required="required" lay-verify="required">
			    <option value="1" ${(obj.sex==1)?string("selected","")} >男</option>
			    <option value="2" ${(obj.sex==2)?string("selected","")} >女</option>
		    </select>
        </div>
    </div>
	
    <div class="hr-line-dashed"></div>

    <div class="layui-form-item text-center">
        <input type='hidden' value='${obj.id?c}' name='id'/>
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消</button>
    </div>
</form>
<script>
 layui.use('form', function(){
var form = layui.form(); 
form.render();
});
 </script>
